<template>
	<view>
		<uni-popup ref="popup" type="center" >
			<view class="popup-wrap">
				<image @tap="close" class="icon-close" src="/static/images/icon-close.png" mode="aspectFill"></image>
				<view class="title">操作失败</view>
				<view class="tip">该设备价格暂不可修改</view>
				<view class="btn">
					<button @tap="close">确定</button>
				</view>
			</view>
		</uni-popup>
	</view>
</template>

<script>
	import uniPopup from '@/components/uni-popup/uni-popup.vue';
	export default {
		components:{uniPopup},
		data() {
			return {
			}
		},

		methods:{
		    open(){
				this.$refs.popup.open();
		    },
			close() {
				this.$refs.popup.close();
			}
 	    }
	}
</script>

<style lang="scss">
	.popup-wrap {
		width: 510rpx;
		height: 370rpx;
		border-radius: 10rpx;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
		position: relative;
		background-color: #FFFFFF;
		
		.icon-close {
			position: absolute;
			top: 16rpx;
			right: 16rpx;
			width: 30rpx;
			height: 30rpx;
			padding: 10rpx;
		}
		.title {
			font-size: 32rpx;
			font-weight: 800;
			color: #343434;
			margin-top: 30rpx;
		}
		
		.tip {   
			color: #343434;
			font-size: 30rpx; 
		}
		
		.btn {
			width: 450rpx;
			margin-bottom: 30rpx;
			>button {
				background-color: #407CFF;
				line-height: 84rpx;
				color: #FFFFFF;
				border-radius: 8rpx;
			}
		}
	}
</style>
